package com.alibaba.algo.cooperation.constants;

/**
 * @author: niechanggang
 * @date:2021/3/23 15:09
 * @description:
 */
public class SysConstant {
    /**
     * 操作成功
     */
    public static final Integer OK = 0;
    /**
     * 系统内部错误
     */
    public static final Integer SYS_ERROR = -1;

    /**
     * 用户未授权
     */
    public static final Integer UNAUTHORIZED = 403;

    /**
     * 参数不合法
     */
    public static final Integer ILLEGAL_PARAMETER = 418;

    public static final String SYS_PERMISSION_PASSWD_SALT = "888algo666";
    public static final String SYS_PERMISSION_JWT_TOKEN = "token";
    public static final String SYS_PERMISSION_JWT_TOKEN_USERID_KEY = "userid";
    public static final String SYS_PERMISSION_JWT_TOKEN_SUBJECT_KEY = "subject";
    public static final String SYS_PERMISSION_JWT_TOKEN_AUDIENCE_KEY = "audience";
    public static final String SYS_PERMISSION_JWT_TOKEN_SIGN_KEY = "audience";
    public static final String SYS_PERMISSION_USER = "permission:user:data:";
    public static final String SYS_PERMISSION_USER_TOKEN = "permission:user:token:";
    public static final String SYS_PERMISSION_USER_PASSWD = "passwd";
    public static final String SYS_PERMISSION_JWT_TOKEN_SUBJECT = "smartApp";
    public static final String SYS_PERMISSION_AUTH_APPID = "appid";
    public static final String SYS_PERMISSION_AUTH_TIMESTAMP = "timestamp";
    public static final String SYS_PERMISSION_AUTH_NONCE = "nonce";
    public static final String SYS_PERMISSION_AUTH_SIGNATURE = "signature";
}
